package com.dmooo.ymx.bean;

import java.io.Serializable;
import java.util.List;

public class AccPass implements Serializable {

    public String account;
    public String password;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    //去重关键,重写equals方法
    @Override
    public boolean equals(Object o) {
        AccPass user = (AccPass) o;
        return user.account.equals(account);
    }

    //去重关键,把User的id当做对象的哈希表值返回
    @Override
    public int hashCode() {
        return account.hashCode();
    }

}
